#ifndef STAMMDATEN_H
#define STAMMDATEN_H

#include <QWidget>
#include <QtSql>
#include <QMessageBox>
#include <QCheckBox>
#include <QKeyEvent>
#include "decipheraddon.h"
#include "checkboxdelegate.h"

namespace Ui {
class Stammdaten;
}

class Stammdaten : public QWidget
{
    Q_OBJECT

public:
    explicit Stammdaten(QWidget *parent = 0);
    ~Stammdaten();

protected:
    void showEvent(QShowEvent *);
    void keyPressEvent(QKeyEvent *event);

private slots:
    void reloadStammdaten();
    void edit_stammdaten(int row, int column);
    void check_delete();
    void delete_selection();

    void on_update_pushButton_clicked();

private:
    Ui::Stammdaten *ui;
    QSqlDatabase db;
    DecipherAddon da;
};

#endif // STAMMDATEN_H
